/**
 * 汇总 选取接口信息
 *    查询回修类型  getRepairsType
 *    查询回修原因  getRepairsCause
 *   查询回修性质  getRepairsNature
 *   查询是否进缸  getIsWhether   
 *   查询回修工序  getWordField  
 *   回修车间     getTreeDepart
 *   部门        getDepartList
 * 
 */
import { get, post } from '../http';

export function selectDataFn() {
    return {
        getRepairsType(params: any) {
            return post({
                url: '/dwWorkShop/repairType/selectRepairType',
                data: params
            })
        },
        getRepairsCause(params: any) {
            return post({
                url: '/dwWorkShop/repairCause/selectRepairCause',
                data: params
            })
        },
        getRepairsNature(params: any) {
            return post({
                url: '/dwWorkShop/repairNature/selectRepairNature',
                data: params
            })
        },
        getIsWhether(params: any) {
            return post({
                url: '/dwWorkShop/whetherCylinder/selectWhetherCylinder',
                data: params
            })
        },
        getWordField(params: any) {
            return post({
                url: '/pdm/workprocedure/select',
                data: params
            })
        },
        getTreeDepart(params: any) {
            return post({
                url: '/org/baCompany/getTreeCompanyOrDepartment',
                data: params,
            })
        },
        getOrderDepart() {
            return post({
                url: "/org/baCompany/getDepartmentTreeByUser",
                // data:params
            })
        },
        getDepartList(params: any) {
            return post(
                {
                    url: '/org/baCompany/getDepartmentTree',
                    data: params,
                }
            )
        },

        getSplitTypeList(params: any) {
            return post({
                url: '/dwWorkShop/splitType/getSplitTypeModel',
                data: params
            })
        },


    }
}

/**
 * 获取   根据流转卡号 查询车间记录   getWordProcessList
 */
export function wordProcess() {
    return {
        getWordProcessList(params: any) {
            return post({
                url: "/dwWorkShop/workshopProcess/selectOne",
                data: params
            })
        }
    }
}
/**
 * 调整历史记录查询
 * @returns 
 */
export function findHistory() {
    return {
        getFindHistoryList(params: any) {
            return post({
                url: '/dwWorkShop/userUpdate/findUserUpdate',
                data: params
            })
        }
    }
}

/**
 * 染色配方查询
 */ 

export function findRecipe(){
    return {
        getRecipeList(params:any){
            return post({
                url:'/aps/circulatCard/findDyeRecipe',
                data:params,
            })
        }
    }
}

